<?php
/**
 * Created by PhpStorm.
 * User: alice
 * Date: 2015/12/29
 * Time: 9:18
 */

class Involved_ProductPicModel extends BaseModel
{
    protected $table = 'product_pic';


    /********************************   APP接口   *****************************/


    /**
     * 获取商品图片
     * @param $product_id
     * @return mixed
     */
    public function GetPic($product_id)
    {
        return  DB::table($this->table)
            ->where('product_id',$product_id)
            ->first();
    }

    /**
     * 获取现货图片
     * @return mixed
     */
    public function DetailsPic($paramObj)
    {
        return  DB::table($this->table)
            ->where('product_id',$paramObj->product_id)
            ->first();
    }


}